home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 June: Reference Library / Dev.CD Jun 95 / Dev.CD Jun 95.toast / What's New? / New System Software Extensions / QuickDraw 3D ß / Programming / SampleCode / MetafileRead / MetaFileReadSupport.h < prev   
Encoding:
Text File  |  1995-03-22  |  1.9 KB  |  61 lines  |  [TEXT/MPCC]

  1. // My3dSupport.c - QuickDraw 3d routines - interface
  2. //
  3. // This file contains
  4. //
  5. // Created 27th Dec 1994, Nick Thompson, DEVSUPPORT
  6. //
  7. // Modification History:
  8. //
  9. //    12/27/94        nick        initial version
  10.  
  11. #ifndef _MY3DSUPPORT_H_
  12. #define _MY3DSUPPORT_H_
  13.  
  14. // Macintosh System Stuff
  15. #include <Files.h>
  16. #include <Types.h>
  17. #include <Windows.h>
  18.  
  19. // QuickDraw 3D stuff
  20. #include "QD3D.h"
  21. #include "QD3DGroup.h"
  22. #include "QD3DErrors.h"
  23. #include "QD3DView.h"
  24.  
  25. //-------------------------------------------------------------------------------------------
  26.  
  27. struct _documentRecord {
  28.     TQ3ViewObject    fView ;                    // the view for the scene
  29.     TQ3GroupObject    fModel ;                // object in the scene being modelled
  30.     TQ3StyleObject    fInterpolation ;        // interpolation style used when rendering
  31.     TQ3StyleObject    fBackFacing ;            // whether to draw shapes that face away from the camera
  32.     TQ3StyleObject    fFillStyle ;            // whether drawn as solid filled object or decomposed to components
  33.     TQ3Matrix4x4        fRotation;            // the transform for the model
  34.     TQ3Point3D        fGroupCenter ;            // the center of the group (for rotation) 
  35.     float            fGroupScale    ;            // scaling factor to apply before drawing
  36. };
  37.  
  38. typedef struct _documentRecord DocumentRec, *DocumentPtr, **DocumentHdl ;
  39.  
  40. //---------------------------------------------------------------------------------------
  41.  
  42. OSErr MyQD3DInitialize( void ) ;
  43. OSErr MyQD3DExit() ;
  44.  
  45. TQ3ViewObject        MyNewView(WindowPtr theWindow) ;
  46. TQ3DrawContextObject    MyNewDrawContext( WindowPtr theWindow) ;
  47. TQ3CameraObject        MyNewCamera(WindowPtr theWindow) ;
  48. TQ3GroupObject        MyNewLights(void) ;
  49. TQ3GroupObject        MyNewModelFromFile(FSSpec *theFileSpec) ;
  50. TQ3Status SubmitScene( DocumentPtr theDocument ) ;
  51.  
  52. TQ3Point3D AdjustCamera(
  53.     DocumentPtr            theDocument,
  54.     short                winWidth,
  55.     short                winHeight) ;
  56.     
  57. Boolean             MetafileFileSpecify( FSSpec *theFile ) ; 
  58. TQ3Status             MyReadModelFromFile( TQ3FileObject theFile,TQ3GroupObject myGroup) ;
  59.  
  60. #endif
  61.